<%@ page language="java" pageEncoding="UTF-8"%>
<jsp:directive.page import="cn.skyclass.net.HtmlEditor" />

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<script language="JavaScript">
	<!--	
		var contentInitialized = false;
		function getEditorValue(){
			return editor.value;
		}		
		function setEditorValue(val) {
			if(contentInitialized){
				editor.value = val;
			}
		}		
		function setInitValue(){
			contentInitialized = true;		
			if(!editor.value){
				editor.value = parent.htmleditor_initdata;
			}	
		}
		function getHtmlEditorUploadUrl() {
			return "<%=HtmlEditor.getEditorUploadUrl(request, application)%>";
		}	

		function getHtmlEditorUploadPhysicalPath() {
			return "<%=HtmlEditor.getEditorUploadPhysicalPath(request, application)%>";
		}	
    //-->
	</script>
		<title>html editor</title>
		<style>
body { margin: 0px; }
</style>
	</head>
	<body onload="JavaScript:setInitValue();">
		<object id='editor'
			data="<%=HtmlEditor.getEditorMainUrl(request, application)%>"
			width="100%" height="100%" style='LEFT: 0px; TOP: 0px'
			type='text/x-scriptlet' viewastext></object>
	</body>
</html>
